/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cxhd.pacs.interceptor;

import com.cxhd.pacs.DataConfig;
import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;

/**
 *
 * @author Administrator
 */
public class HostInfoInterceptor implements Interceptor {

    @Override
    public void intercept(Invocation invctn) {
        //String uuid = invctn.getController().getPara("uuid");
        System.out.println("--------------------");
        //if (uuid == null || DataConfig.getInstance().getHostIdCache(uuid) == null) {
        try {
            invctn.invoke();
        } catch (Exception e) {
            e.printStackTrace();
        }
        //  System.out.println("通过---------------");
        //} else {
        //  invctn.getController().renderText(DataConfig.getInstance().getHostIdCache(uuid));
        // }
    }

}
